// 关于订单的接口
import request from '../utils/request'

// 获取默认地址接口
export function getDefAddress(token){
  return  request("/ljf/user/shipping-address/default/v2","get",{token:token})
}
// 提交订单接口
export function createOrder(data){
  return request("/ljf/order/create","post",data)
}
// 获取门店列表
export function getShopList(){
  return request("/ljf/shop/subshop/list","post")
}
// 订单列表
export function getOrderList(status){
   return request("/ljf/order/list","post",{
     token:wx.getStorageSync("token"),
     status:status
   })
}
// 取消订单
export function closeOrder(orderId){
  return request("/ljf/order/close","post",{
    orderId:orderId,
    token:wx.getStorageSync("token")
  })
}